﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using LogManager.Base;

namespace LogManager.Windows.Events
{
    public class WebRequestEvent : Event, IRequestInfo
    {
        #region IRequestInfo Members
        [Filterable]
        public string RequestUrl
        {
            get { return (string)Properties.GetValueOrDefault("RequestUrl", null); }
            set { Properties["RequestUrl"] = value; }
        }
        [Filterable]
        public string RequestPath
        {
            get { return (string)Properties.GetValueOrDefault("RequestPath", null); }
            set { Properties["RequestPath"] = value; }
        }
        [Filterable]
        public string UserHostAddress
        {
            get { return (string)Properties.GetValueOrDefault("UserHostAddress", null); }
            set { Properties["UserHostAddress"] = value; }
        }
        [Filterable]
        public string IdentityName
        {
            get { return (string)Properties.GetValueOrDefault("IdentityName", null); }
            set { Properties["IdentityName"] = value; }
        }
        [Filterable]
        public string IsAuthenticated
        {
            get { return (string)Properties.GetValueOrDefault("IsAuthenticated", null); }
            set { Properties["IsAuthenticated"] = value; }
        }
        [Filterable]
        public string AuthenticationType
        {
            get { return (string)Properties.GetValueOrDefault("AuthenticationType", null); }
            set { Properties["AuthenticationType"] = value; }
        }

        #endregion
    }
}
